-- GENERATED SPELL FOR [Watcher Gashra] --


function spell0_28730(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(52470,pUnit)
pUnit:RegisterEvent('Sorts_28730', 8000, 1)
end

function spell1_28730(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(52469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28730', 9000, 1)
end

function spell2_28730(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(59364,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28730', 9000, 1)
end

function spell3_28730(pUnit, Event) --@Web Wrap,n/a--
pUnit:FullCastSpellOnTarget(52086,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28730', 3324, 1)
end

function Sorts_28730(pUnit, Event)
local choix_sorts_28730 = math.random(0, 3)
if choix_sorts_28730 == 0 then
pUnit:RegisterEvent('spell0_28730', 1, 1)
end
if choix_sorts_28730 == 1 then
pUnit:RegisterEvent('spell1_28730', 1, 1)
end
if choix_sorts_28730 == 2 then
pUnit:RegisterEvent('spell2_28730', 1, 1)
end
if choix_sorts_28730 == 3 then
pUnit:RegisterEvent('spell3_28730', 1, 1)
end
end

function mob28730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28730', math.random(1500, 3000), 1)
end

function mob28730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28730, 1, 'mob28730_Action')
RegisterUnitEvent(28730, 2, 'mob28730_Leave')
RegisterUnitEvent(28730, 3, 'mob28730_Kill')
RegisterUnitEvent(28730, 4, 'mob28730_Die')
